How can I resolve the incompatible operand types error in my MasterMind Java game